package cn.itqiqi.student_system_java.mapper;

import cn.itqiqi.student_system_java.pojo.Course;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper {

    List<Course> getCourseAll(Page<Course> page);
    List<Course> getCourseByName(Page<Course> page, String cname);
    void addCourse(Course course);
    void updateCourse(Course course);
    void deleteCourse(int cid);

}
